(function(){"use strict";BX.namespace("BX.Landing.MapHelper");BX.Landing.MapHelper.sheduldedMapEvents=[];BX.Landing.MapHelper.init=function(a){const n=a.block.querySelector("[data-map]");if(n){n.style.position="relative";if(BX.Landing.getMode()==="edit"){a.forceInit()}else{BX.Landing.MapHelper.onBeforeApiLoaded(a);BX.Landing.Provider.Map.create(n,{mapContainer:n,theme:BX.Landing.Utils.data(n,"data-map-theme"),roads:BX.Landing.Utils.data(n,"data-map-roads")||[],landmarks:BX.Landing.Utils.data(n,"data-map-landmarks")||[],labels:BX.Landing.Utils.data(n,"data-map-labels")||[],mapOptions:BX.Landing.Utils.data(n,"data-map"),onProviderInit:()=>{BX.show(a.block)}})}}};BX.addCustomEvent(window,"BX.Landing.Block:init",BX.Landing.MapHelper.init);BX.Landing.MapHelper.onBeforeApiLoaded=function(a){if(BX.Landing.getMode()!=="edit"){BX.hide(a.block)}}})();
//# sourceMappingURL=map_init.map.js